package decorator

abstract class Drink {
  var description: String = _
  var price: Double = _

  def getDescription(): String = {
    description + " 价格" + this.price
  }

  def setDescription(desc: String): Unit = {
    description = desc

  }

  def setPrice(p: Float): Unit = {
    price = p
  }

  def getPrice(): Double = {
    this.price
  }

  def cost(): Float
}
